package com.bytech.common.biz.entity.article;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Author Zhao
 * @Create 2021-07-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 文章标题
     */
    private String title;

    /**
     * 文章内容
     */
    private String content;

    /**
     * 文章内容缩略
     */
    private String summary;

    /**
     * 是否首页展示
     */
    private Boolean isIndex;

    /**
     * 是否置顶
     */
    private Boolean isTop;

    /**
     * 浏览量
     */
    private Integer viewCount;

    /**
     * 点赞量
     */
    private Integer thumbCount;

    /**
     * 是否需要密码访问
     */
    private Boolean needPassword;

    /**
     * 文章状态
     */
    private String status;

    /**
     * 是否原创
     */
    private Boolean isOriginal;

    /**
     * 原创地址
     */
    private String originalUrl;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 创建者
     */
    private String creator;

    private Date modifyTime;

}
